﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 发送现金红包post需要的参数
    /// </summary>
    public class sendredpack_post
    {
        /// <summary>
        /// 签名
        /// </summary>
        public string sign { get; set; }
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string mch_billno { get; set; }
        /// <summary>
        /// 商户号 微信支付分配的商户号
        /// </summary>
        public string mch_id { get; set; }
        /// <summary>
        /// 公众账号appid  微信分配的公众账号ID
        /// </summary>
        public string wxappid { get; set; }
        /// <summary>
        /// 商户名称  红包发送者名称
        /// </summary>
        public string send_name { get; set; }
        /// <summary>
        /// 用户openid 接受红包的用户 
        /// </summary>
        public string re_openid { get; set; }
        /// <summary>
        /// 付款金额  单位分
        /// </summary>
        public int total_amount { get; set; }
        /// <summary>
        /// 红包发放总人数
        /// </summary>
        public int total_num { get; set; }
        /// <summary>
        /// 红包祝福语
        /// </summary>
        public string wishing { get; set; }
        /// <summary>
        /// 调用接口的机器Ip地址
        /// </summary>
        public string client_ip { get; set; }
        /// <summary>
        /// 活动名称 eg.猜灯谜抢红包活动
        /// </summary>
        public string act_name { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 场景id  放红包使用场景，红包金额大于200时必传
        /// </summary>
        public string scene_id { get; set; }
        /// <summary>
        /// 资金授权商户号 eg.服务商替特约商户发放时使用
        /// </summary>
        public string consume_mch_id { get; set; }
        /// <summary>
        /// 随机字符
        /// </summary>
        public string nonce_str { get; set; }
        /// <summary>
        /// 活动信息
        /// </summary>
        public string risk_info { get; set; }
       


    }
    /// <summary>
    /// 发送现金红包post后返回的参数
    /// </summary>
    public class sendredpack_return
    {
        /// <summary>
        /// 返回状态码 eg.SUCCESS/FAIL 此字段是通信标识，非交易标识，交易是否成功需要查看result_code来判断
        /// </summary>
        public string return_code { get; set; }
        /// <summary>
        /// 返回信息 返回信息，如非空，为错误原因 
        /// </summary>
        public string return_msg { get; set; }
        /// <summary>
        /// 签名
        /// </summary>
        public string sign { get; set; }
        /// <summary>
        /// 业务结果 eg.SUCCESS/FAIL
        /// </summary>
        public string result_code { get; set; }
        /// <summary>
        /// 错误代码
        /// </summary>
        public string err_code { get; set; }
        /// <summary>
        /// 错误代码描述
        /// </summary>
        public string err_code_des { get; set; }
        /// <summary>
        /// 商户订单号
        /// </summary>
        public string mch_billno { get; set; }
        /// <summary>
        /// 商户号
        /// </summary>
        public string mch_id { get; set; }
        /// <summary>
        /// 公众账号appid
        /// </summary>
        public string wxappid { get; set; }
        /// <summary>
        /// 用户openid
        /// </summary>
        public string re_openid { get; set; }
        /// <summary>
        /// 付款金额
        /// </summary>
        public string total_amount { get; set; }
        /// <summary>
        /// 红包订单的微信单号
        /// </summary>
        public string send_listid { get; set; }

    }

}
